package net.jsoft.platform.core.vo.pagination;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PaginationVO
{
    private int start;

    private int length;

    private List<?> aaData;

    private long iTotalDisplayRecords;

    private long iTotalRecords;

    private Map<String, String> extraMap;

    public List<?> getAaData()
    {
        return aaData;
    }

    public void setAaData(List<?> aaData)
    {
        this.aaData = aaData;
    }

    public long getiTotalDisplayRecords()
    {
        return iTotalDisplayRecords;
    }

    public void setiTotalDisplayRecords(long iTotalDisplayRecords)
    {
        this.iTotalDisplayRecords = iTotalDisplayRecords;
    }

    public long getiTotalRecords()
    {
        return iTotalRecords;
    }

    public void setiTotalRecords(long iTotalRecords)
    {
        this.iTotalRecords = iTotalRecords;
    }

    public int getStart()
    {
        return start;
    }

    public void setStart(int start)
    {
        this.start = start;
    }

    public int getLength()
    {
        return length;
    }

    public void setLength(int length)
    {
        this.length = length;
    }

    public Map<String, String> getExtraMap()
    {
        return extraMap;
    }

    public void setExtraMap(Map<String, String> extraMap)
    {
        this.extraMap = extraMap;
    }

    public void setExtraMap(String key, String value)
    {
        if (this.extraMap == null)
        {
            extraMap = new HashMap<String, String>();
        }
        extraMap.put(key, value);
    }

}
